package io.terminus.lego.shinda.service.model

import java.util.*

/**
 * @author wangmeng
 * @date 2018/4/16
 */
fun User.toMap(): Map<String, Any?> {
    return HashMap<String, Any?>().apply {
        put("id", id)
        put("phone", phone)
        put("email", email)
        put("avatar_url", avatarUrl)
        put("username", username)
        put("nick_name", nickName)
        put("real_name", realName)
    }
}